Skip to contentSkip to conversation

feat_ipv6_payload problems on Solaris 10

Openvpn-devel Michal Ludvig 3 participants 5 messages Jul 10, 2010

lore
Share & tools
lore
#0 lore raw

Hi Gert & all,

I'm having a problem with feat_ipv6_payload branch (checked out from git yesterday). One end is Solaris 10 (sparc) and the other end is Linux.

IPv4 over the link works fine, however with IPv6 the Solaris end doesn't seem to see the incoming v6 traffic. I can see the packets coming on tun0 with snoop (tcpdump-like tool for Solaris) but the system ignores them. For instance ping from Solaris to Linux generates v6 ping request, Linux replies with v6 ping reply, the reply arrives to Solaris (verified by snoop) but the ping process never receives it and eventually times out with "no answer from <Linux v6 addr>". Similarly when I try telnet or ping from the Linux end I see the packets coming on tun0 but they are not processed. I can ping the Solaris' v6 tun0 address locally, so the address is assigned and interface is up. It behaves just like if there was an ingress v6 firewall on the Solaris box but the pfil (packet filter) service is disable altogether.

Here is what I use on Solaris:

~/src/openvpn-gert-ipv6.git # /opt/openvpn/sbin/openvpn --dev tun --secret /etc/openvpn/static.key \
      --verb 3 \
      --ifconfig 172.29.1.1 172.29.1.2
      --ifconfig-ipv6 2001:cafe::1/64 2001:cafe::2 --tun-ipv6

Sat Jul 10 19:34:30 2010 OpenVPN 2.1.1b sparc-sun-solaris2.10 [SSL] [LZO2] [IPv6 payload 20100307-1] built on Jul 10 2010 Sat Jul 10 19:34:30 2010 Static Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sat Jul 10 19:34:30 2010 Static Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication Sat Jul 10 19:34:30 2010 Static Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sat Jul 10 19:34:30 2010 Static Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication Sat Jul 10 19:34:30 2010 TUN/TAP device tun0 opened
Sat Jul 10 19:34:30 2010 do_ifconfig, tt->ipv6=1
Sat Jul 10 19:34:30 2010 /usr/sbin/ifconfig tun0 172.29.1.1 172.29.1.2 mtu 1500 up
Sat Jul 10 19:34:30 2010 /usr/sbin/ifconfig tun0 netmask 255.255.255.255
Sat Jul 10 19:34:30 2010 /usr/sbin/ifconfig tun0 inet6 unplumb
Sat Jul 10 19:34:30 2010 /usr/sbin/ifconfig tun0 inet6 plumb 2001:cafe::1/64 2001:cafe::2 up
Sat Jul 10 19:34:30 2010 Data Channel MTU parms [ L:1544 D:1450 EF:44 EB:4 ET:0 EL:0 ]
Sat Jul 10 19:34:30 2010 Local Options hash (VER=V4): '9a8635be'
Sat Jul 10 19:34:30 2010 Expected Remote Options hash (VER=V4): '8faff290'
Sat Jul 10 19:34:30 2010 Socket Buffers: R=[57344->65536] S=[57344->65536]
Sat Jul 10 19:34:30 2010 UDPv4 link local (bound): [undef]:1194
Sat Jul 10 19:34:30 2010 UDPv4 link remote: [undef]
Sat Jul 10 19:35:15 2010 Peer Connection Initiated with ...
Sat Jul 10 19:35:17 2010 Initialization Sequence Completed

~/src/openvpn-gert-ipv6.git # ifconfig -a
[...]
tun0: flags=10010008d1<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST,IPv4,FIXEDMTU> mtu 1500 index 8

        inet 172.29.1.1 --> 172.29.1.2 netmask ffffffff
        ether 0:0:1:11:fb:b0
tun0: flags=2200851<UP,POINTOPOINT,RUNNING,MULTICAST,NONUD,IPv6> mtu 1500 index 8
        inet6 2001:cafe::1/64 --> 2001:cafe::2
        ether 0:0:1:11:fb:b0

~/src/openvpn-gert-ipv6.git # netstat -rn -f inet6
Routing Table: IPv6
Destination/Mask Gateway Flags Ref
Use If
--------------------------- --------------------------- ----- --- ------- -----
2001:cafe::2 2001:cafe::1 UH 1 1 tun0

And on the Linux side:

~# /opt/openvpn-ipv6/sbin/openvpn --dev tunBarbucha --verb 3 --secret static.key --remote ... \
      --ifconfig 172.29.1.2 172.29.1.1
      --ifconfig-ipv6 2001:cafe::2/64 2001:cafe::1 --tun-ipv6

Sat Jul 10 19:36:47 2010 OpenVPN 2.1.1b x86_64-suse-linux-gnu [SSL] [LZO2] [EPOLL] [IPv6 payload 20100307-1] built on Jul 10 2010 Sat Jul 10 19:36:47 2010 Static Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sat Jul 10 19:36:47 2010 Static Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Jul 10 19:36:47 2010 Static Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sat Jul 10 19:36:47 2010 Static Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Jul 10 19:36:48 2010 TUN/TAP device tunBarbucha opened
Sat Jul 10 19:36:48 2010 TUN/TAP TX queue length set to 100
Sat Jul 10 19:36:48 2010 do_ifconfig, tt->ipv6=1
Sat Jul 10 19:36:48 2010 /sbin/ifconfig tunBarbucha 172.29.1.2 pointopoint 172.29.1.1 mtu 1500
Sat Jul 10 19:36:48 2010 /sbin/ifconfig tunBarbucha inet6 add 2001:cafe::2/64
Sat Jul 10 19:36:48 2010 Data Channel MTU parms [ L:1544 D:1450 EF:44 EB:4 ET:0 EL:0 ]
Sat Jul 10 19:36:48 2010 Local Options hash (VER=V4): '8faff290'
Sat Jul 10 19:36:48 2010 Expected Remote Options hash (VER=V4): '9a8635be'
Sat Jul 10 19:36:48 2010 Socket Buffers: R=[262144->131072] S=[262144->131072]
Sat Jul 10 19:36:48 2010 UDPv4 link local (bound): [undef]:1194
Sat Jul 10 19:36:48 2010 UDPv4 link remote: ...
Sat Jul 10 19:36:59 2010 Peer Connection Initiated with ...
Sat Jul 10 19:37:00 2010 Initialization Sequence Completed

~# ip a show dev tunBarbucha
22: tunBarbucha: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 100

    link/[65534]
    inet 172.29.1.2 peer 172.29.1.1/32 scope global tunBarbucha
    inet6 2001:cafe::2/64 scope global
       valid_lft forever preferred_lft forever

All looks good to me but still Solaris seems to ignore the incoming v6 payload. Any ideas what's wrong?

Thanks

Michal

#1 lore raw

Hi,

Quoted 2 lines · Michal Ludvig

I'm having a problem with feat_ipv6_payload branch (checked out from git yesterday). One end is Solaris 10 (sparc) and the other end is Linux.

Which version of the tun driver are you using for Solaris?

My test solaris machine (Solaris 10 on Sparc64, but not the very latest version) uses the driver from http://www.whiteboard.ne.jp/~admin2/tuntap/
and IPv6 works fine there. The web page says that this driver did not support IPv6 before 11/16/2009 - so maybe this is the problem.

I am not using point-to-point tun but point-to-multipoint tun, but from your logs, ptp tun should work just fine - and I'm happy to see someone test p2p tun mode :-). From the interface setup side of things, there should not be a difference between "p2mp client on solaris" and "one end of a p2p tun on solaris" anyway.

So - if you could make sure that you have the very latest tun driver, and it still doesn't work, I'm happy to help you debug this, as it really should work. These days I'm fairly busy so it might take a few days, though. (Just as an advance warning if I don't answer right away).

Oh: don't use the tun.c from the whiteboard web page - this is parallel work, and it won't work with feat_ipv6_payload. Integration of Kazuyoshi-san's tun.c work into openvpn-testing is on my TODO list :-)

gert

Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             [email protected]...
fax: +49-89-35655025                        [email protected]...
#2 lore raw
Quoted 11 lines · Gert Doering

Hi,

Quoted 2 lines · Michal Ludvig

I'm having a problem with feat_ipv6_payload branch (checked out from git yesterday). One end is Solaris 10 (sparc) and the other end is Linux.

Which version of the tun driver are you using for Solaris?

My test solaris machine (Solaris 10 on Sparc64, but not the very latest version) uses the driver from http://www.whiteboard.ne.jp/~admin2/tuntap/
and IPv6 works fine there. The web page says that this driver did not support IPv6 before 11/16/2009 - so maybe this is the problem.

That was it! Works now:

[Linux] ~ # ping6 -n 2001:cafe::1
PING 2001:cafe::1(2001:cafe::1) 56 data bytes
64 bytes from 2001:cafe::1: icmp_seq=343 ttl=255 time=54.3 ms 64 bytes from 2001:cafe::1: icmp_seq=344 ttl=255 time=50.1 ms ^C

I used to have CSWtun from Blastwave - it's labeled as version 1.1 as well so I believed it was the right thing.

Is there any way to check that the right module is loaded at runtime? That may help avoid some confusion in the future...

Thanks a lot for your work!

(BTW is there any work in progress for a v6 transport?)

Michal

#3 lore raw

Hi,

Quoted 8 lines · Michal Ludvig
Quoted 8 lines
Quoted 2 lines

I'm having a problem with feat_ipv6_payload branch (checked out from git yesterday). One end is Solaris 10 (sparc) and the other end is Linux.

Which version of the tun driver are you using for Solaris?

My test solaris machine (Solaris 10 on Sparc64, but not the very latest version) uses the driver from http://www.whiteboard.ne.jp/~admin2/tuntap/
and IPv6 works fine there. The web page says that this driver did not support IPv6 before 11/16/2009 - so maybe this is the problem.

Quoted 7 lines

That was it! Works now:

[Linux] ~ # ping6 -n 2001:cafe::1
PING 2001:cafe::1(2001:cafe::1) 56 data bytes
64 bytes from 2001:cafe::1: icmp_seq=343 ttl=255 time=54.3 ms 64 bytes from 2001:cafe::1: icmp_seq=344 ttl=255 time=50.1 ms ^C

Cool :-) - congratulations!

(And thanks for testing point-to-point tun mode - I assumed it would work, but it's still on my test-plan...)

Quoted 2 lines

I used to have CSWtun from Blastwave - it's labeled as version 1.1 as well so I believed it was the right thing.

Hmmm. I wasn't aware that that one exists - but it might be worth a try to send them a note that they might want to do some updates.

Quoted 2 lines

Is there any way to check that the right module is loaded at runtime? That may help avoid some confusion in the future...

Good questions. I don't know right now, but I'll try to find out.

Quoted 1 line

(BTW is there any work in progress for a v6 transport?)

Well, there's feat_ipv6_transport by jjo, and of course, the "allmerged" branch which has both v6 payload and v6 transport. As far as I understand, the v6 transport stuff works on all "major" platforms supported by OpenVPN and generally gets the job done :-)

gert

Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             [email protected]...
fax: +49-89-35655025                        [email protected]...
#4 lore raw

Hi,

I'm happy to hear that the driver worked fine.
Please let me know if there's any problem on it.

Regards,

Kazuyoshi

2010/7/10 Gert Doering <[email protected]...>

Quoted 65 lines

Hi,

Quoted 1 line · Michal Ludvig
Quoted 1 line
Quoted 1 line

I'm having a problem with feat_ipv6_payload branch (checked out from

git

Quoted 5 lines
Quoted 5 lines
Quoted 1 line

yesterday). One end is Solaris 10 (sparc) and the other end is Linux.

Which version of the tun driver are you using for Solaris?

My test solaris machine (Solaris 10 on Sparc64, but not the very latest version) uses the driver from

http://www.whiteboard.ne.jp/~admin2/tuntap/<http://www.whiteboard.ne.jp/%7Eadmin2/tuntap/>

Quoted 9 lines
Quoted 2 lines

and IPv6 works fine there. The web page says that this driver did not support IPv6 before 11/16/2009 - so maybe this is the problem.

That was it! Works now:

[Linux] ~ # ping6 -n 2001:cafe::1
PING 2001:cafe::1(2001:cafe::1) 56 data bytes
64 bytes from 2001:cafe::1: icmp_seq=343 ttl=255 time=54.3 ms 64 bytes from 2001:cafe::1: icmp_seq=344 ttl=255 time=50.1 ms ^C

Cool :-) - congratulations!

(And thanks for testing point-to-point tun mode - I assumed it would work, but it's still on my test-plan...)

Quoted 2 lines

I used to have CSWtun from Blastwave - it's labeled as version 1.1 as well so I believed it was the right thing.

Hmmm. I wasn't aware that that one exists - but it might be worth a try to send them a note that they might want to do some updates.

Quoted 2 lines

Is there any way to check that the right module is loaded at runtime? That may help avoid some confusion in the future...

Good questions. I don't know right now, but I'll try to find out.

Quoted 1 line

(BTW is there any work in progress for a v6 transport?)

Well, there's feat_ipv6_transport by jjo, and of course, the "allmerged" branch which has both v6 payload and v6 transport. As far as I understand, the v6 transport stuff works on all "major" platforms supported by OpenVPN and generally gets the job done :-)

gert
--
USENET is *not* the non-clickable part of WWW!

                                                          //

www.muc.de/~gert/ <http://www.muc.de/%7Egert/>
Gert Doering - Munich, Germany
[email protected]...
fax: +49-89-35655025
[email protected]...

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel